import config.AppConfig;
import config.ConfigWatch;
import gui.MainPage;
import network.websocket.WSServer;

/**
 * @author wyl
 */
public class ServerMain {
    public static void main(String[] args) {
        try {
            AppConfig.initConfig();
            ConfigWatch.startWatch();
            WSServer.Instance.startServer();
            new MainPage();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }
}
